package com.offcn.service;

import com.offcn.entity.User;
import com.offcn.utlis.PageUtils;

import java.util.List;

public interface UserService {
    /**
     * 查询用户
     * @param username
     * @param password
     * @return
     */
    public User loginUser(String username,String password);

    /**
     * 添加用户
     * @param user
     * @return
     */
    boolean add(User user);


    /**
     * 分页查询
     * @param search
     * @param pageSize
     * @param currentPage
     * @return
     */
  public   PageUtils<User> findByAll(String search, int pageSize, int currentPage);

    /**
     *  修改用户
     * @param user
     * @return
     */
    boolean updateUser(User user);

    /**
     * 批量删除
     * @param uids
     * @return
     */
    boolean del(String[] uids);
}
